Repository navigation
Raise dependency minimums that fail to install or import and test them in CI - #423
Merged
Merged
Conversation
…m in CI google-api-python-client before 2.34.0 imports pkg_resources, tqdm before 4.40.0 lacks CallbackIOWrapper, PyYAML before 6.0 has no Python 3.11 wheels, and httplib2 0.19 requires a pyparsing that Python 3.15 cannot import. The new job runs the offline suite on Python 3.11 with every dependency at its declared minimum. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues block the dependency-minimum updates and lowest-version CI coverage.
No open issues 🎉
What changed in this PR
This PR raises incompatible dependency minimums for PyDrive2 and adds CI coverage to catch regressions at the lowest supported versions.
Changes:
- Raise minimum versions of
google-api-python-client,httplib2,PyYAML, andtqdm. - Add a Python 3.11 job that resolves the lowest direct dependencies and runs offline tests.
- Require the new job to pass alongside the existing test matrix and update contributor guidance.
| File | Description |
|---|---|
pyproject.toml |
Raises four dependency minimums to compatible versions. |
CONTRIBUTING.rst |
Clarifies that every test job must pass the required check. |
.github/workflows/test.yml |
Adds lowest-dependency testing and includes it in the required check. |
Review effort: Balanced
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Four declared minimums allow versions that PyDrive2 2.0 cannot run with. They are only installed when an environment already has an old release or another package holds one back, so CI never saw the failures.
google-api-python-client>=1.12.5→>=2.68.0. Releases before 2.34.0 importpkg_resourcesand raiseModuleNotFoundErrorin an environment without setuptools.tqdm>=4.0.0→>=4.65.0.pydrive2.fsimportstqdm.utils.CallbackIOWrapper, which tqdm added in 4.40.0.PyYAML>=3.0→>=6.0.1. PyYAML has Python 3.11 wheels from 6.0 on. Older releases build from source, and 3.10 failed to compile with libyaml headers installed.httplib2>=0.19.0→>=0.21.0. httplib2 0.19 requires pyparsing 2, which importssre_constants. Python 3.15 removed that module.Each new minimum is the first release that declares Python 3.11 support. The other minimums are unchanged and pass at their declared versions.
A new
test (lowest dependencies)job installs every runtime dependency and fsspec at its declared minimum on Python 3.11 and runs the offline suite. The requiredLive Drive testscheck now waits for this job too.Validation
main'spyproject.tomlfail at collection withModuleNotFoundError: No module named 'pkg_resources'.🤖 Generated with Claude Code